<template>
	<view class="content">
		<view class="subject mt20 specHeader">
			<orderModule :orderData="orderData"></orderModule>
			<view class="attached fs22 c9">已优惠： <text class="c3">5元</text></view>
		</view>
		<view class="subject mt20 flex specContent">
			<view>
				<view class="fs30 c3">退货退款</view>
				<view class="fs22 c9 mt20">已收到货，需要退回已收到的货</view>
			</view>
			<view>
				<u-checkbox v-model="sell" shape="circle" icon-size="36" name="sell" active-color="#FC4658"></u-checkbox>
			</view>
		</view>
		<view class="subject mt20 flex specContent">
			<view>
				<view class="fs30 c3">仅退款</view>
				<view class="fs22 c9 mt20">未收到货，或与商家协商同意退款</view>
			</view>
			<view>
				<u-checkbox v-model="fund" shape="circle" icon-size="36" name="fund" active-color="#FC4658"></u-checkbox>
			</view>
		</view>
		<view class="subject mt20">
			<view class="flex">
				<view>
					<view class="fs28 c9">申请原因</view>
				</view>
				<view class="flex">
					<view class="fs30 c3 mr20">请选择申请原因</view>
					<u-icon name="more-dot-fill" size="32"></u-icon>
				</view>
			</view>
			<view class="inputA">
				<u-input type="textarea" v-model="inputArea" height="200" :clearable="false" :custom-style="bgC" :auto-height="true"
				 placeholder="请输入申请理由（选填）" />
			</view>
			<view class="wrap mt20">
				<u-upload :action="actionOss" :form-data="dataOss" :file-list="fileList" :custom-btn="true">
					<view slot="addBtn" class="slot-btn" hover-class="slot-btn__hover" hover-stay-time="150">
						<u-icon name="camera" size="60" color="#999999"></u-icon>
						<view class="fs22 c9 slot-tit">添加图片</view>
					</view>
				</u-upload>
			</view>
			<view class="bot-btn">
				<u-button :custom-style="btnPlus" hair-line="false" shape="circle">提交</u-button>
			</view>
		</view>
	</view>
</template>

<script>
	import orderModule from "../../components/orderitems/modualar.vue"
	export default {
		components: {
			orderModule,
		},
		data() {
			return {
				orderData: {
					goods_image: "https://img.alicdn.com/tps/i3/TB1KAtdHXXXXXajXVXXMxXJVFXX-100-100.jpg_250x225Q50s50.jpg_.webp",
					goods_name: "ins婴儿床床围床上用品婴儿床围四季通用皇冠纯棉防火防盗防小强",
					goods_spec: "56*100三面围（送床笠枕套）",
					goods_discount: 40,
					goods_price: 58.8,
					checked: true,
					number: 1,
					id: '201929894'
				},
				bgC: {
					background: "#f7f7f7",
					paddingLeft: "16rpx",
					paddingTop: "20rpx"
				},
				sell: false,
				fund: false,
				inputArea: "",
				btnPlus: {
					width: "690rpx",
					height: "80rpx",
					bordeRadius: "40rpx",
					background: " #F74F6B",
					fontSize: "30rpx",
					color: "#FFFFFF"
				}
			}
		}
	}
</script>

<style scoped>
	.content {
		padding: 0 20rpx 148rpx;
	}

	.subject {
		padding: 20rpx 26rpx;
		background: #FFFFFF;
		border-radius: 12rpx;
	}

	.specHeader {
		padding-bottom: 32rpx;
	}

	.specContent {
		padding-right: 0;
	}

	.attached {
		margin-left: 196rpx;
	}

	.inputA {
		padding: 30rpx 0 0;
	}

	.slot-btn {
		width: 200rpx;
		height: 200rpx;
		padding: 50rpx 0;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-wrap: wrap;
		background: rgb(244, 245, 246);
		border-radius: 10rpx;
	}

	.slot-btn__hover {
		background-color: rgb(235, 236, 238);
	}

	.slot-tit {
		width: 200rpx;
		text-align: center;
	}

	.bot-btn {
		background: #f7f9fa;
		position: fixed;
		bottom: 0;
		left: 0;
		padding: 24rpx 30rpx;
	}
</style>
